var DeleteFileAssistant = function() {
}

DeleteFileAssistant.prototype.run = function(future) {
	var args = this.controller.args;
	if(!args.path) {
		setError(future, "parameter path must be string");
	} else {
		path.exists(args.path, function(exists) {
			if(exists) {
				fs.unlink(args.path, function(ex) {
					future.result = {
						done:	ex === undefined
					};
				});
			} else {
				setError(future, "path does not exist");
			}
		});
	}
}
